﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Collections.ObjectModel;

namespace _3TSolutions.MySqlPSExtensions
{
    [RunInstaller(true)]
    public class MySqlPSExtensionsPSSnapin : CustomPSSnapIn
    {
        public override string Description
        {
            get { return "A Set of MySql PowerShell Cmdlets"; }
        }

        public override string Name
        {
            get { return "3TSolutions.MySqlPSExtensions"; }
        }

        public override string Vendor
        {
            get { return "EURL 3TSolutions"; }
        }

        private Collection<CmdletConfigurationEntry> _cmdlets;
        public override Collection<CmdletConfigurationEntry> Cmdlets
        {
            get
            {
                if (null == _cmdlets)
                {
                    _cmdlets = new Collection<CmdletConfigurationEntry>();
                    _cmdlets.Add(new CmdletConfigurationEntry("Invoke-MySqlCmd", typeof(MySqlCmd), "PowerSnapin.dll-Help.xml"));
                }
                return _cmdlets;
            }
        }
    }
}
